/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package calcu_tabla_simbolos;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.InputStreamReader;

/**
 *
 * @author Angela Ochoa
 */
public class Main {

    /**
     * @param args the command line arguments
     */
   //  static TablaSimbolos tabla= new TablaSimbolos();
   // public static void main(String[] args) throws Exception {
       
            
          //parser  parserObj= new parser();
           
     Main() throws FileNotFoundException{
           //Yylex  miAnalizadorLexico= new Yylex(new InputStreamReader(System.in),tabla);
           Yylex  miAnalizadorLexico= new Yylex(new FileReader("texto.txt"),parser.tabla);
           parser p = new parser( miAnalizadorLexico );
           try{
                p.parse();
           }catch(Exception e){
              
               Interfaz.jTextArea2.setText("Error");
           }
     }
     public static void main(String[] args) {

        new Interfaz().setVisible(true);

        }
          /*  parserObj.setScanner(miAnalizadorLexico);
            try{
                parserObj.parse();
               // tabla.imprimir();
                }catch(Exception x){
                x.printStackTrace();
                System.out.println("Error");
                }
            }*/
    }

